package apiUtils;

import java.io.IOException;

import okhttp3.Call;

/**
 * Created by sth0409 on 2017/4/26.15:48.
 */
public abstract class CallBack {
    public abstract void onSuccess(Call call, String response) throws IOException;

    //0 as onfailure，1 as response is error,2 as response is null
    public abstract void onError(int code);
}
